package org.wenhuayuan.uilibrary.banner.core;

import android.content.Context;
import android.view.animation.Interpolator;
import android.widget.Scroller;

public class HiBannerScroller extends Scroller {

    private int duration = 1000;


    public HiBannerScroller(Context context, int duration) {
        super(context);
        this.duration = duration;
    }

    public HiBannerScroller(Context context, Interpolator interpolator) {
        super(context, interpolator);
    }

    @Override
    public void startScroll(int startX, int startY, int dx, int dy) {
        this.startScroll(startX, startY, dx, dy, this.duration);
    }

    @Override
    public void startScroll(int startX, int startY, int dx, int dy, int duration) {
        super.startScroll(startX, startY, dx, dy, this.duration);
    }
}
